/**
 * Program  : OneActivity.java
 * Author   : qianj
 * Create   : 2012-5-25 下午02:04:45
 *
 * Copyright 2012 by newyulong Technologies Ltd.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of newyulong Technologies Ltd.("Confidential Information").  
 * You shall not disclose such Confidential Information and shall 
 * use it only in accordance with the terms of the license agreement 
 * you entered into with newyulong Technologies Ltd.
 *
 */

package cn.learn.base.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import cn.learn.base.BaseActivity;
import cn.learn.base.IndexActivity;
import cn.learn.base.R;

/**
 * 
 * @author   qianj
 * @version  1.0.0
 * @2012-5-25 下午02:04:45
 */
public class TwoActivity extends BaseActivity{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setView(R.layout.sub);
		SetTitle("Two");
		((TextView) findViewById(R.id.tv_show)).setText("Two");
		setTitleBar(R.drawable.title_back, "", R.drawable.title_home, "");
	}
	
	
	@Override
	protected void HandleTitleBarEvent(int buttonId) {
		switch (buttonId) {
		case 0:
			finish();
			break;
		case 1:
			Intent i = new Intent(TwoActivity.this,IndexActivity.class);
			startActivity(i);
			break;
		default:
			break;
		}
		
	}
	
}

